/**
 * index:
   @author:liuyanhui
   date:2014年12月23日上午9:55:22
 */
package com.neusoft.cmsprojects.action;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.neusoft.cmsprojects.model.CProductsorta;
import com.neusoft.cmsprojects.model.TbGuestbook;
import com.neusoft.cmsprojects.service.GuestBookService;
import com.opensymphony.xwork2.ActionSupport;

/**
 * @author Administrator
 *
 */
public class GuestBookAction extends ActionSupport{

	/**
	 * index:
	 @author:liuyanhui
	 date:2014年12月23日上午9:55:22
	 */
	@Resource(name="GuestBookService")
	private GuestBookService guestbookservice;
	
	//查询所有留言
	public String  queryBook(){
		HttpServletRequest request=ServletActionContext.getRequest();
		List<TbGuestbook> GBList=this.guestbookservice.queryBook();
		request.setAttribute("GBList",GBList);
		return "queryBook";
	}


	public GuestBookService getGuestbookservice() {
		return guestbookservice;
	}


	public void setGuestbookservice(GuestBookService guestbookservice) {
		this.guestbookservice = guestbookservice;
	}
	
}
